package com.vcs.basicapi.feign;

import com.vcs.basicapi.entity.Dept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Package:   com.vcs.basicapi.feign
 * @ClassName: DeptService
 * @Description:  No such property: code for class: Script1
 * @Author:  zhangs
 * @Email:   853632587@qq.com
 * @Date:    2020/12/28 14:30
 * @Version: 1.0
 */

@FeignClient(value = "${basic.service.name}",contextId ="dept")
public interface DeptService {

    /**
     * 保存部门
     * @param dept
     * @return
     */
    @PostMapping("/dept/save")
    int saveDept(Dept dept);



}
